import { Module } from '@nestjs/common';
import { GirlModule } from './girl/girl.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { BoyModule } from './boy/boy.module';

@Module({
  imports: [
    TypeOrmModule.forRoot({
      type: 'postgres',
      host: '192.168.3.11',
      port: 5432,
      username: 'postgres',
      password: 'postgres',
      database: 'AssemblyLine_Data',
      retryDelay: 500,
      retryAttempts: 10,
      synchronize: true,
      autoLoadEntities: true,
    }),
    GirlModule,
    BoyModule,
  ],
  controllers: [],
  providers: [],
})
export class AppModule {}
